package ae.pcfc.cldos.online.common.clddb.dao.provider;

import ae.pcfc.cldos.online.common.clddb.dao.ApplicationAttachmentDAO;
import ae.pcfc.cldos.online.common.clddb.domain.ApplicationAttachment;
import ae.pcfc.cldos.online.common.dao.GenericDAO;

/**
 * 
 * @author arosa
 *
 */
public class ApplicationAttachmentDAOImpl extends GenericDAO implements ApplicationAttachmentDAO{
	
	public void add(ApplicationAttachment applicationAttachment){
		saveOrUpdate(applicationAttachment);
	}
	
	public ApplicationAttachment findById(Long id){
		return findById(ApplicationAttachment.class, id);
	}
	
	public ApplicationAttachment findByOnlineId(Long onlineId){
		return findByProperty(ApplicationAttachment.class, ApplicationAttachment.ONLINE_ID, onlineId);
	}
}
